<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
						
							<div class="thumb">
							<?php if ($module->showtitle) { ?>
								<h4><?php echo $module->title; ?></h4>
							<?php }; ?>		
							<?php foreach ($list as $item) :  ?>
													<?php		
															$arr2 = preg_split('/<(IMG|img) /', $item->introtext);
															$arr3 = preg_split('/src=\"/', $arr2[1]);
															$arr4 = preg_split('/\"/', $arr3[1]);
															if(preg_match('/http:/', $arr4[0]))
															{
																$result = $arr4[0];
															}
															else if(preg_match('/^\//', $arr4[0])){
																$result = $u2 . substr($arr4[0],1);
															}
															else
															{
																for($ei = 3; $ei < sizeof($u1) - 1; $ei++)
																{
															
																$u2 .= $u1[$ei] . "/";
																}
																$result = $u2 . $arr4[0];
															}
														  ?>
							
							
														<p class="fwb pa0"><?php echo $item->title; ?></p>
														<p>
																			<?php						
															$words = explode(" ", strip_tags($item->introtext));
															if(count($words) > 15)
															{
																for($i=0;$i<=15;$i++)
																{
																	echo $words[$i]." ";
																}
																//echo "...";
															}
															else
															{
																echo strip_tags($item->introtext);
															}
															?></p>
															<img src="<?php if ($result=="") 
																					echo JURI::base()."/templates/elysium/images/noimg.jpg";
																					else echo $result; ?>" alt="<?php echo $first->title; ?>"  title="<?php echo $first->title; ?>"  width="263" height="145" />							
						
							<?php endforeach; ?>
							</div>
						
						

